package com.exam.Service;

import com.exam.Entity.PaperManage;
import com.exam.Mapper.PaperManageMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaperService {

    @Autowired
    private PaperManageMapper paperMapper;

    public List<PaperManage> findAll() {
        return paperMapper.findAll();
    }


    public List<PaperManage> findById(Integer paperId) {
        return paperMapper.findById(paperId);
    }


    public int add(PaperManage paperManage) {
        return paperMapper.add(paperManage);
    }

}
